package com.template.domain.param;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

public class AuthParams {

    @Getter
    @Setter
    public static class ValidCaptcha {
        @NotBlank(message = "验证码异常")
        private String key;
        @NotBlank(message = "验证码不能为空")
        private String code;
    }

    @Getter
    @Setter
    public static class Login {
        @NotNull(message = "账号不能为空")
        private String account;

        @NotNull(message = "密码不能为空")
        private String password;

        @NotNull(message = "验证码不能为空")
        private String captchaCode;

        private String key; // 缓存中验证码对应的key
    }

    @Getter
    @Setter
    public static class LoginByPhone {
        private String phone;
        private String code;
    }
}
